<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>用户注册  - 哇塞网</title>
	<link href="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/favicon.ico" rel="shortcut icon" />
	<script src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/js/jquery-1.7.2.min.js" type="text/javascript"></script>	
	<script src="http://127.0.0.1/hdwy/wasai/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>	
	<link rel="stylesheet" type="text/css" href="http://127.0.0.1/hdwy/wasai/Static/hdjs/hdjs.css"/>
	<link rel="stylesheet" type="text/css" href="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/css/register.css"/>
	<link rel="stylesheet" type="text/css" href="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/css/common.css"/>
	<script type="text/javascript">
		$(function(){		
			var User = "<?php echo U('Common/checkUser');?>";
			var Email = "<?php echo U('Common/checkEmail');?>";
			var Code = "<?php echo U('Common/checkCode');?>";
			$('.inpit_register').validate({
				email : {
					rule : {
						required : true,
						email: true,
						ajax:{url:Email}
					},
					error :{
						required : '邮箱不能为空',
						email:'邮箱格式不正确'
					},
					success:'ok!',
					message:'请输入一个用于登录的电子邮箱地址'
				},
				username: {
					rule : {
						required : true,
						minlen: 3,
						maxlen: 12,
						ajax:{url:User}
					},
					error :{
						required : '昵称不能为空',
						minlen: '用户名必须在3到12位之间',
						maxlen: '用户名必须在3到12位之间',					
						
					},
					success:'ok!',
					message:'请填写昵称'
				},
				password: {
					rule : {
						required : true,
						minlen: 6,
						maxlen: 16,
					},
					error :{
						required : '密码不能为空',
						minlen:'密码必须在6到16位之间',
						maxlen:'密码必须在6到16位之间',
						
					},
					success:'ok!',
					message:'请填写密码'
				},
				password2: {
					rule : {
						required : true,
						minlen: 6,
						maxlen: 16,
						confirm: 'password'
					},
					error :{
						required : '确认密码不能为空',
						minlen:'确认密码必须在6到16位之间',
						maxlen:'确认密码必须在6到16位之间',
						confirm :'两次密码不相同'
					},
					success:'ok!',
					message:'请重复输入您的密码'
				},
				code: {
					rule : {
						required : true,
						ajax:{url:Code}
					},
					error :{
						required : '验证码不能为空',
					},
					success:'ok!',
					message:'请输入验证码码'
				}		
			})
		})
	</script>
</head>
<body>
	<!--载入公共头部-->
	<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
	<!--登陆注册/购物车部分 -->
	<div class="top fl">
		<div class="logins">
			    <?php if(!$_SESSION['uid']){ ?>
			<div class="logins-left fl">
				<a href="<?php echo U('Index/Login/index');?>">登录</a>
				<a href="<?php echo U('Index/Login/register');?>">注册</a>
			</div>
			<?php }else{ ?>
			<div class="user fl">
				<a href=""><img src="<?php echo $_SESSION['face'];?>"/></a>
				<span><?php echo $_SESSION['username'];?></span>
				<a href="<?php echo U('Index/Login/out');?>" class="out">退出</a>
			</div>
			<?php } ?>
			<div class="buycar fr">
				<div class="buycar-left fl">
					<img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/buycar.png" alt="" />
				</div>
				<a href="#">购物车<span class="num">0</span>件</a>
			</div>
		</div>
	</div>
	<!--end-->
	
	<!--首页分类/logo/搜索栏部分-->
	<div class="header fl">
		<div class="classification">
			<div class="house fl">
				<a href="<?php echo U('Index/index');?>"></a>
			</div>
			<!--左侧分类-->
			<ul class="classA fl">
				<li><a href="<?php echo U('Category/index');?>">市集</a></li>
				<li><a href="">新品</a></li>
				<li><a href="">热卖</a></li>
				<li><a href="">闪购</a></li>
				<li><a href="">定制</a></li>
			</ul>
			<!--logo-->
			<div class="logo">
				<a href=""><img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/logo.png"/></a>
			</div>
			<form action="" method="post" class="search fr">
				<input type="text" placeholder="请输入要搜索的关键词" class="text"/>
				<input type="submit" value="" class="submit"/>
			</form>
			<!--右侧分类-->
			<ul class="classB">
				<li><a href="">动态</a></li>
				<li><a href="">画报</a></li>
				<li><a href="">画报</a></li>
			</ul>
		</div>
	</div>
	<!--end-->




	
	<!--注册表单-->
	<div class="register fl">
		<div class="register_in">
			<div class="register_left fl">
				<span class="span1">注册哇噻网</span>
				<span class="span2">喜欢手工原创设计的快加入我们！一起寻找商品，挖掘特色小店，结识志趣相投的人！</span>
				<form action="" method="post" class="inpit_register" id="regForm">
					<ul>
						<li>
							<span>电子邮箱:</span>
							<input type="text" name="email" class="yy" autocomplete="off"/>							
						</li>
						<li>
							<span>取个昵称:</span>
							<input type="text" name="username" autocomplete="off" class="yy"/>
						</li>
						<li>
							<span>设置密码:</span>
							<input type="password" name="password" autocomplete="off" id=""  class="yy"/>
						</li>
						<li>
							<span>确认密码:</span>
							<input type="password" name="password2" autocomplete="off" id=""  class="yy"/>
						</li>
						<li class="sex">
							<span>性别:</span>
							<input type="radio" value="男" name="sex" checked="" />&nbsp;<span>男</span>
							<input type="radio" value="女" name="sex"/>&nbsp;<span>女</span>
						</li>
						<li class="code">
							<span>验证码:</span>
							<input type="text" name="code" autocomplete="off"/>
							<img src="<?php echo U('Index/Common/code');?>" alt="验证码"  onclick="this.src=this.src + '&' + Math.random()"/>
							<span id="hd_code"></span>
						</li>				
						<li class="tijiao">
							<input type="hidden" name="face" id="" value="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/default.jpg" />
							<input type="submit" value="" />
						</li>
					</ul>
				</form>
			</div>
			<!--跳转登录界面-->
			<div class="loction_login fl">
				<div class="login_top">
					<span>已有哇塞网账号</span>
				</div>				
				<div class="login_bot">
				<a href="<?php echo U('Index/Login/index');?>"><img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/login_btn.png"/></a>
				</div>
			</div>			
		</div>
	</div>
	<!--end-->

	<!--更多精彩-->
	<div class="more_out fl">
		<div class="cin"></div>
		<div class="more_in">
			<div class="more_top"></div>
			<div class="morejingcai">
				<p>更多精彩</p>
				<ul>
					<li><a href="">闪购</a></li>
					<li><a href="">新品</a></li>
					<li><a href="">热卖</a></li>
					<li><a href="">礼物</a></li>
					<li><a href="">品牌</a></li>
				</ul>
			</div>
			<div class="women">
				<p>我们承诺</p>
				<ul>
					<li><span>100%原创设计</span></li>
					<li><span>365天不打烊</span></li>
					<li><span>无理由退换货(除定制)</span></li>
					<li><span>担保交易</span></li>
					<li><span>先行赔付</span></li>
					<li><span>支持定制</span></li>
				</ul>
			</div>
			<div class="guanzhu">
				<p>在这里关注我们</p>
				<ul>
					<li><a href="" class="sina"></a><a href="">新浪微博</a></li>
					<li><a href="" class="qq"></a><a href="">腾讯微博</a></li>
					<li><a href="" class="douban"></a><a href="">豆瓣小站</a></li>
					<li><a href="" class="renren"></a><a href="">人人小站</a></li>
					<li class="ewm"><a href="javascript:;" class="weixin"></a><a href="javascript:;">哇塞网官方微信</a><img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/ewm.png"/></li>
				</ul>
			</div>
			<div class="edcode">
				<img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/edCode.png" alt="" />
			</div>
		</div>
	</div>
	<!--end-->
	
	<!--底部信息-->
	<div class="bottom fl">
		<div class="footer">
			<div class="footitle fl">
				<p>高端定制上哇塞网</p>
			</div>
			<div class="footernav fl">
				<p class="box">
					<a href="">关于我们</a>
					<a href="">联系我们</a>				
					<a href="">媒体报道</a>				
					<a href="">创意画报</a>				
					<a href="">招贤纳士</a>				
					<a href="">版权保护</a>
					<a href="">用户条款</a>				
					<a href="">隐私声明</a>				
					<a href="">友情链接</a>				
					<a href="">网站地图</a>
					<a href="">帮助中心</a>				
					<a href="">手工客</a>
				</p>
			</div>
			<div class="footermsg fl">
				<p>北京光年创艺信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京公网安备11010502026420][京ICP证090011号]</p>
			</div>
			<div class="footerpic fl">
				<div class="botpic">
					<img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/bot1.png" alt="" />
					<img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/bot2.png" alt="" />
					<img src="http://127.0.0.1/hdwy/wasai/Application/Index/View/Public/images/ico/bot3.png" alt="" />
				</div>
			</div>
		</div>
	</div>
	<!--end-->
	</body>
</html>
